﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RayDen.Library.Data
{
    public class NameIDMapper
    {
        public static void Transform<TValue>(IDictionary<string, TValue> source, out Dictionary<int, TValue> destination, int idStart = 1000 )
        {
            var currentID = idStart;
            destination = source.ToDictionary(srcValue => currentID++, srcValue => srcValue.Value);
        }
    }
}
